package org.csmzxy.class2334;

public class Example05 {
    public static void main(String[] args){
        String s="Hello";
        char[] charArray =s.toCharArray();
        System.out.println("将字符串"+s+"转换字符数组后的结果：");
        for(int i =0;i<charArray.length;i++){
            if(i != charArray.length-1){
                System.out.println(charArray[i]+",");
            }else {
                System.out.println(charArray[i]);
            }
        }
        System.out.println("将int类型的数据12转换为String类型，结果为" +String.valueOf(12));
        System.out.println("将字符串"+s+"全部转换成大写之后的结果："+ s.toUpperCase());
        System.out.println("将字符串"+s+"全部转换成小写之后的结果："+s.toUpperCase());
    }
}
